package cn.zjitc.es.repositories;

import cn.zjitc.es.entity.Article;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import java.util.List;

public interface ArticleRepository extends ElasticsearchRepository<Article,Long> {

    List<Article> findByTitle(String title);
    List<Article> findByTitleOrContent(String title, String context);
    List<Article> findByTitleOrContent(String title, String context, Pageable pageable);
}
